package com.you.concurrent.thread.start;

public class ThreadStartDemo {

    static int num = 0;

    public static void main(String[] args) throws InterruptedException {
        Thread t1 = new Thread(() -> {
            System.out.println("num = " + num);
        });
        Thread.sleep(1000L);
        num = 100;
        t1.start();
    }
}
